class AddUsersCryptedPasswordColumn < ActiveRecord::Migration[6.0]
  def change
    add_column :users, :crypted_password, :string
    # 为了安全, 作为一个随机的字符串
    add_column :users, :salt, :string
    # 删除 password
    remove_column :users, :password
  end
end
